﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site/Master/Main.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ECommerce.Web.Site.Login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="styles/Loginmain.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function validate()
        {
            var loginName = $("#<%=txtLoginName.ClientID %>").val();
            var pwd = $("#<%=txtPassword.ClientID %>").val();
            if (loginName == "")
            {
                alert("请输入用户名");
                return false;
            }
            if (pwd == "")
            {
                alert("请输入密码");
                return false;
            }


            return true;
        }

        function validate2()
        {
            var loginName = $("#<%=txtLoginName.ClientID %>").val();
            if (loginName == "")
            {
                alert("请输入用户名");
                return false;
            }
            return true;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="main">
        <div class="loginmain">
            <p>
                还没有账号？<a href="javascript:javascript:showForm('会员注册','register.aspx',378,388)">立即注册</a></p>
            <div class="title">
                会员登录</div>
            <div class="con">
                <h1>
                    账号：<asp:TextBox ID="txtLoginName" runat="server"></asp:TextBox><a href="javascript://" style="display:none;">请输入登录账号！</a></h1>
                <h1>
                    密码：<asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:LinkButton ID="btnGetPwd" runat="server" onclick="btnGetPwd_Click" OnClientClick="return validate2()">找回密码</asp:LinkButton>
                    </h1>
                <h2>
                    
                </h2>
                <h3>
                    <asp:ImageButton ID="btnLogin" OnClientClick="return validate()" 
                        OnClick="btnLogin_Click" runat="server" ImageUrl="images/lm.jpg" /></h3>
            </div>
        </div>
    </div>


</asp:Content>
